package com.hyzx.qbasic.admin.domain.repository;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.OrgInfoPO;
import com.hyzx.qbasic.admin.model.po.OrgPO;

import java.util.List;

/**
 * Created by 黄江华 on 2017/10/9
 */

public interface IOrgRepository {
    List<OrgPO> getAllOrgList();

    PageInfo<OrgInfoPO> getPagedOrgList(int pageNum, int pageSize, String orgName, Integer orgId);

    boolean addOrg(OrgPO org);

    boolean deleteOrg(List<Integer> orgIdList);

    OrgPO getOrgInfo(int orgId);

    boolean editOrg(OrgPO org);

    Integer getUserOrgId(int userId);
}
